<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>测试接口</title>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/aes.js" type="text/javascript"></script>
    <script src="js/api.js" type="text/javascript"></script>
    <script src="js/bootstrap.min.js" type="text/javascript"></script>
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="to_json_files/font-awesome.min.css" rel="stylesheet">
    <link href="to_json_files/base.css" rel="stylesheet">
    <style type="text/css">
        body {
            width: 100%;
            font-family: '微软雅黑';
        }

        #showJson {
            text-align: left;
        }
    </style>
    <script src="js/test.js" type="text/javascript"></script>
</head>
<body>
<div style="padding: 10px;" id="menuDiv"></div>
<div class="col-sm-9 col-md-10 main text-center">
    <p class="visible-xs">
        <button type="button" class="btn btn-primary btn-xs"
                data-toggle="offcanvas">
            <i class="glyphicon glyphicon-chevron-left"></i>
        </button>
    </p>
    <h3 class="page-header">接口测试</h3>
    <input class="form-control" id="baseUrl" type="text" placeholder="接口BaseUrl" value="http://192.168.10.212"
           style="margin: 20px;"/>
    <div class="table-responsive">
        <form class="form-horizontal" role="form"
              action="" method="post" enctype="multipart/form-data" onsubmit="return false;">
            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label" id="userName"></label>
                    <div class="col-sm-5">
                        <input type="button" id="login" value="登录" class="col-sm-2 btn btn-success">
                        <input type="button" id="logout" value="退出" class="col-sm-2 btn btn-danger"
                               style='display:none;'>
                    </div>
                    <div class="col-sm-2">
                        <input class="form-control" id="phoneInput" type="text" placeholder="手机号" value="13732545670"/>
                    </div>
                    <div class="col-sm-2">
                        <input class="form-control" id="passwordInput" type="text" placeholder="密码" value="a123456"/>
                    </div>
                </div>
            </fieldset>

            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">接口选项</label>
                    <div class="col-sm-5">
                        <select id="interfaceSelect" class="form-control">
                            <!-- ##分割线#############################################################################-->
                            <option method='get' url='/api/v1/captcha/graph'
                                    value='{}'>
                                1.3.获取图形验证码
                            </option>
                            <option method='post' url='/api/v1/user/rst-pwd-by-email'
                                    value='{"email":"xxx@qq.com","password":"123456","eTag":"xxx"}'>1.7.邮箱修改密码
                            </option>
                            <option method='post' url='/api/v1/user/send-rst-pwd-email' value='{"email":"xxx@qq.com"}'>
                                1.8.向邮箱发送修改密码请求
                            </option>
                            <option method='get' url='/api/v1/oss/signature'
                                    value='{}'>
                                1.9.获取OSS签名
                            </option>
                            <option method='get' url='/api/v1/user/phone/13333333333' value='{}'>1.10.判断手机号是否存在</option>
                            <option method='get' url='/api/v1/user/token/xxxxxxx' value='{}'>1.11.判断token是否有效</option>
                            <option method='post' url='/api/v1/user/son'
                                    value='{"userName":"zhangsan","phone":"13333333333","email":"xxx@qq.com"}'>2.1.添加子账号
                            </option>

                            <option method='post' url='/api/personnel/dept'
                                    value='{"deptName":"销售部","supDeptId":0,"logoResource":{"resourceUrl":"dwaf"}}'>
                                4.1.新增部门
                            </option>
                            <option method='get' url='/api/personnel/dept/1'
                                    value='{}'>
                                4.2.获取单个部门
                            </option>
                            <option method='put' url='/api/personnel/dept'
                                    value='{"deptId":1,"etag":"we","deptName":"修改部门名称","logoResource":{"resourceUrl":"dwaf"}}'>
                                4.3.修改部门
                            </option>
                            <option method='delete' url='/api/personnel/dept/2'
                                    value='{}'>
                                4.4.物理删除部门
                            </option>
                            <option method='post' url='/api/personnel/depts/condition'
                                    value='{"supDeptId":0,"deptName":"门"}'>
                                4.5.条件查询部门列表
                            </option>
                            <option method='get' url='/api/personnel/depts/group'
                                    value='{}'>
                                4.6.分组获取某公司下所有部门
                            </option>
                            <option method='post' url='/api/personnel/resource-dept'
                                    value='{"deptId":1,"resource":{"resourceUrl":"wdwaefg"}}'>
                                4.7.新增部门附件
                            </option>
                            <option method='delete' url='/api/personnel/resource-dept/1'
                                    value='{}'>
                                4.8.删除部门资源
                            </option>

                            <option method='post' url='/api/personnel/employee'
                                    value='{"photoResource":{"resourceUrl":"frege"},"employeeName":"李四","sex":1,"fullTime":1,"cardType":3,"cardNo":"wer","status":1,"phone":"18280240024","email":"1165580433@qq.com"}'>
                                6.1.新增员工
                            </option>
                            <option method='get' url='/api/personnel/employee/3'
                                    value='{}'>
                                6.2.获取员工(基本信息)
                            </option>
                            <option method='put' url='/api/personnel/employee'
                                    value='{"updateType":1,"photoResource":{"resourceUrl":"frege"},"employeeId":17,"employeeName":"张三","etag":"0d4e781f10884298aa343b5e4d56c804"}'>
                                6.3.修改员工(基本信息)
                            </option>
                            <option method='delete' url='/api/personnel/employee/4'
                                    value='{}'>
                                6.4.删除员工(逻辑删除)
                            </option>
                            <option method='post' url='/api/personnel/employees'
                                    value='{"pageNum":1,"pageSize":5}'>
                                6.5.获取员工列表
                            </option>
                            <option method='put' url='/api/personnel/employee/status/dimission'
                                    value='{"employeeId":4,"etag":"330073d4ca5d4459a3f1b780a300f6ec","cause":"因为公司效益差","resourceImgs":[{"resourceUrl":"dweff"},{"resourceUrl":"dweff"}]}'>
                                6.6.离职员工
                            </option>
                            <option method='delete' url='/api/personnel/employees'
                                    value='[1,2]'>
                                6.7.批量删除员工(逻辑删除)
                            </option>
                            <option method='post' url='/api/personnel/resource-employee'
                                    value='{"employeeId":1,"resourceType":1,"resource":{"resourceUrl":"wdwaefg"}}'>
                                6.8.新增员工资源
                            </option>
                            <option method='delete' url='/api/personnel/resource-employee/1/2/1'
                                    value='{}'>
                                6.9.删除员工资源
                            </option>
                            <option method='put' url='/api/personnel/employee/status/renew'
                                    value='{"employeeId":4,"status":1,"etag":"330073d4ca5d4459a3f1b780a300f6ec"}'>
                                6.10.离职员工恢复
                            </option>
                            <option method='get' url='/api/personnel/dimissions/employee/3'
                                    value='{}'>
                                6.11.根据员工编号获取离职记录列表（其中第一条为最近离职记录）
                            </option>
                            <option method='put' url='/api/personnel/dimission'
                                    value='{"dimissionId":1,"dimissionType":1,"cause":"因为公司效益差","resourceImgs":[{"resourceUrl":"dweff","resourceName":"图片","isAnonymity":1},{"resourceUrl":"dweff","resourceName":"图片","isAnonymity":1}]}'>
                                6.12.修改离职记录信息
                            </option>
                            <option method='delete' url='/api/personnel/dimissions/employee/1'
                                    value='{}'>
                                6.13.根据员工编号批量删除离职记录
                            </option>
                            <option method='delete' url='/api/personnel/dimission/1'
                                    value='{}'>
                                6.14.根据离职编号删除单条离职记录
                            </option>


                            <option method='post' url='/api/personnel/education-exp'
                                    value='{"employeeId":8,"schoolName":"社会大学","major":"砖业","eduId":5,"graduateTime":1434545}'>
                                7.1.新增教育经历
                            </option>
                            <option method='get' url='/api/personnel/education-exp/10'
                                    value='{}'>
                                7.2.获取教育经历
                            </option>
                            <option method='post' url='/api/personnel/education-exps'
                                    value='{"employeeId":8}'>
                                7.3.获取教育经历列表
                            </option>
                            <option method='put' url='/api/personnel/education-exp'
                                    value='{"employeeId":8,"eduExpId":10,"etag":"b8a160592f0e4e6ba10aba79a02d0adf","schoolName":"修改学校名称","major":"砖业","eduId":5,"graduateTime":1434545}'>
                                7.4.修改教育经历
                            </option>
                            <option method='delete' url='/api/personnel/education-exp/11/33'
                                    value='{}'>
                                7.5.删除教育经历
                            </option>
                            <option method='post' url='/api/personnel/train-exp'
                                    value='{"employeeId":8,"schoolName":"社会培训学校","skill"："技能"，"startTime":12323,"endTime":454535}'>
                                8.1.新增培训经历
                            </option>
                            <option method='get' url='/api/personnel/train-exp/1'
                                    value='{}'>
                                8.2.获取培训经历
                            </option>
                            <option method='put' url='/api/personnel/train-exp'
                                    value='{"employeeId":8,"trainId":1,"etag":"60319323593f43c8bcef0dd96a473594","schoolName":"修改培训名称","skill"："技能"，"startTime":12323,"endTime":454535}'>
                                8.3.修改培训经历
                            </option>
                            <option method='delete' url='/api/personnel/train-exp/2/33'
                                    value='{}'>
                                8.4.删除培训经历
                            </option>
                            <option method='post' url='/api/personnel/train-exps'
                                    value='{"employeeId":8}'>
                                8.5.获取培训经历列表
                            </option>
                            <option method='post' url='/api/personnel/work-exp'
                                    value='{"employeeId":8,"companyName":"上家公司名称","leaveTime":12323}'>
                                9.1.新增工作经历
                            </option>
                            <option method='get' url='/api/personnel/work-exp/36'
                                    value='{}'>
                                9.2.获取工作经历
                            </option>
                            <option method='put' url='/api/personnel/work-exp'
                                    value='{"employeeId":8,"workId":46,"etag":"19a1c520679746019b70c75b98a61ee0","companyName":"修改工作经历公司名称","entryTime":123,"leaveTime":321}'>
                                9.3.修改工作经历
                            </option>
                            <option method='delete' url='/api/personnel/work-exp/36/33'
                                    value='{}'>
                                9.4.删除工作经历
                            </option>
                            <option method='post' url='/api/personnel/work-exps'
                                    value='{"employeeId":8}'>
                                9.5.获取工作经历列表
                            </option>
                            <option method='post' url='/api/personnel/interview'
                                    value='{"interviewName":"teddy","sex":2,"nationality":"汉族","postId":8,"wages":30000,"registerTime":1489138519348,"eduId":2,"politicsStatus":"群众","birthday":1489138519348,"marriage":0,"major":"打酱油","email":"111@qq.com","cardType":1,"source":1,"companyId":0,"phone":"13198341177","cardNo":"511602199112292333","emergencyContactPhone":"13198341177","familyPhone":"13198341177","emergencyContactName":"哈哈","educationExps":[{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1},{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1}],"workExps":[{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1},{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1}],"trainExps":[{"schoolName":"XXX培训","skill":"XXX技能","startTime":1489138519348,"endTime":1489138519348,"certificate":"XXX证书","sort":2}]}'>
                                10.1.新增面试记录
                            </option>
                            <option method='post' url='/api/personnel/h5/interview'
                                    value='{"interviewName":"teddy","sex":2,"nationality":"汉族","postId":8,"wages":30000,"registerTime":1489138519348,"eduId":2,"politicsStatus":"群众","birthday":1489138519348,"marriage":0,"major":"打酱油","email":"111@qq.com","cardType":1,"source":1,"companyId":0,"phone":"13198341177","cardNo":"511602199112292333","emergencyContactPhone":"13198341177","familyPhone":"13198341177","emergencyContactName":"哈哈","educationExps":[{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1},{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1}],"workExps":[{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1},{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1}],"trainExps":[{"schoolName":"XXX培训","skill":"XXX技能","startTime":1489138519348,"endTime":1489138519348,"certificate":"XXX证书","sort":2}]}'>
                                10.2.新增面试记录h5
                            </option>
                            <option method='get' url='/api/personnel/interview'
                                    value='{}'>
                                10.3.获取面试记录详情
                            </option>
                            <option method='put' url='/api/personnel/interview'
                                    value='{"interviewId":4,"etag":"41bd9235dd2a421f899ce9fededfec8d","interviewName":"修改名称","sex":2,"nationality":"汉族","wages":30000,"registerTime":1489138519348,"eduId":2,"politicsStatus":"群众","birthday":1489138519348,"marriage":0,"major":"打酱油","email":"111@qq.com","cardType":1,"source":1,"companyId":0,"phone":"13198341177","cardNo":"511602199112292333","emergencyContactPhone":"13198341177","familyPhone":"13198341177","emergencyContactName":"哈哈","educationExps":[{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1},{"schoolName":"XXX学校","eduId":2,"admissionTime":1489138519348,"graduateTime":1489138519348,"major":"XXX专业","sort":1}],"workExps":[{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1},{"companyName":"XXX公司","positionInfo":"XXX工程师","entryTime":1489138519348,"leaveTime":1489138519348,"sort":1}],"trainExps":[{"schoolName":"XXX培训","skill":"XXX技能","startTime":1489138519348,"endTime":1489138519348,"certificate":"XXX证书","sort":2}]}'>
                                10.4.修改面试记录
                            </option>
                            <option method='delete' url='/api/personnel/interview/3'
                                    value='{}'>
                                10.5.删除一条面试记录
                            </option>
                            <option method='post' url='/api/personnel/interviews'
                                    value='{"pageNum":1,"pageSize":5}'>
                                10.6.获取面试记录列表
                            </option>
                            <option method='put' url='/api/personnel/interview/add-employee/1'
                                    value='{}'>
                                10.7.面试后入职员工
                            </option>
                            <option method='put' url='/api/personnel/interview/hire/1'
                                    value='{}'>
                                10.8.录用员工
                            </option>
                            <option method='post' url='/api/personnel/interview/overtime'
                                    value='{}'>
                                10.9.将所有未及时到岗的面试人员入职状态修改为未到岗状态
                            </option>


                            <option method='get' url='/api/v1/role/2'
                                    value='{}'>
                                11.1. 获取角色
                            </option>
                            <option method='post' url='/api/v1/role'
                                    value='{"roleName":"财务总监","perIds":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17","owns":"true,true,true,true,true,true,true,true,true,true,false,false,false,false,false,false,false"}'>
                                11.2. 新增角色
                            </option>
                            <option method='put' url='/api/v1/role/2/name'
                                    value='{"roleId":2,"roleName":"财务总监1"}'>
                                11.3. 修改角色名称
                            </option>
                            <option method='put' url='/api/v1/role/2/permissions'
                                    value='{"perIds":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17","owns":"true,true,true,true,true,true,true,true,true,false,false,false,false,false,false,false,false"}'>
                                11.4. 修改角色权限
                            </option>
                            <option method='delete' url='/api/v1/role/2'
                                    value='{"eTag":"YJNSDKFI2NJK32N32N3JK24N2J3K4N3"}'>
                                11.5. 删除角色
                            </option>
                            <option method='post' url='/api/v1/roles'
                                    value='{"roleName":"财务总监","creator":1,"status":1,"createTimeStart":1233444444,"createTimeEnd":134343434}'>
                                11.6. 获取角色列表
                            </option>
                            <option method='get' url='/api/v1/role/2/permissions'
                                    value='{}'>
                                11.7. 获取权限列表（根据角色编号）
                            </option>
                            <option method='get' url='/api/v1/role/2/users'
                                    value='{}'>
                                11.8. 获取账号列表（根据角色编号）
                            </option>
                            <option method='post' url='/api/v1/role/2/user/2'
                                    value='{}'>
                                11.9. 为角色添加用户（单个）
                            </option>
                            <option method='post' url='/api/v1/role/2/users'
                                    value='{"userIds":"1,2,3,4}"'>
                                11.10. 为角色添加用户（批量）
                            </option>
                            <option method='get' url='/api/v1/permissions'
                                    value='{}'>
                                11.11. 获取权限列表（模板）
                            </option>

                            <option method='post' url='/api/personnel/post'
                                    value='{"postName":"新增岗位","description":"岗位描述"}'>
                                12.1. 新增一个岗位
                            </option>
                            <option method='post' url='/api/personnel/posts/condition'
                                    value='{"postName":"员"}'>
                                12.2. 查询岗位列表
                            </option>
                            <option method='put' url='/api/personnel/post'
                                    value='{"postId":1,"etag":"egrestrdhsethj","postName":"修改岗位"}'>
                                12.3. 修改岗位
                            </option>
                            <option method='delete' url='/api/personnel/post/1'
                                    value='{}'>
                                12.4. 删除岗位
                            </option>
                            <option method='get' url='/api/personnel/post/2'
                                    value='{}'>
                                12.5. 获取单个岗位
                            </option>
                            <option method='get' url='/api/personnel/post/public/2'
                                    value='{}'>
                                12.6. 获取单个岗位（属于非登录接口）
                            </option>

                            <option method='put' url='/api/personnel/dept-employees/dept'
                                    value='{"relationIds":[75,76],"employeeIds":[46,47],"deptId":3}'>
                                13.1. 将多个员工调整到一个部门
                            </option>
                            <option method='put' url='/api/personnel/dept-employees/employee'
                                    value='{"relationIds":[78],"deptIds":[1,2],"employeeId":45}'>
                                13.2. 将多个部门分配调整给一个员工
                            </option>
                            <option method='post' url='/api/personnel/dept-employee'
                                    value='{"deptId":5,"employeeId":45}'>
                                13.3. 新增一条员工部门关系（不重复才新增）
                            </option>
                            <option method='delete' url='/api/personnel/dept-employee/75'
                                    value='{}'>
                                13.4. 将一个员工从某个部门移除（即删除一条员工部门关系）
                            </option>
                            <option method='get' url='/api/personnel/dept-employee/76'
                                    value='{}'>
                                13.5. 获取一条员工部门关系
                            </option>
                            <option method='post' url='/api/personnel/dept-employees'
                                    value='{"deptId":1}'>
                                13.6. 获取员工部门关系列表（支持deptId条件和employeeId条件）
                            </option>

                            <option method='put' url='/api/personnel/post-employees/post'
                                    value='{"relationIds":[67,72],"employeeIds":[46,47],"postId":2}'>
                                14.1. 将多个员工调整到一个岗位
                            </option>
                            <option method='put' url='/api/personnel/post-employees/employee'
                                    value='{"relationIds":[67],"postIds":[1,2],"employeeId":45}'>
                                14.2. 将多个岗位分配调整给一个员工
                            </option>
                            <option method='post' url='/api/personnel/post-employee'
                                    value='{"postId":2,"employeeId":44}'>
                                14.3. 新增一条员工岗位关系（不重复才新增）
                            </option>
                            <option method='delete' url='/api/personnel/post-employee/67'
                                    value='{}'>
                                14.4. 将一个员工从某个岗位移除（即删除一条员工岗位关系）
                            </option>
                            <option method='get' url='/api/personnel/post-employee/72'
                                    value='{}'>
                                14.5. 获取一条员工岗位关系
                            </option>
                            <option method='post' url='/api/personnel/post-employees'
                                    value='{"postId":1}'>
                                14.6. 获取员工岗位关系列表（支持postId条件和employeeId条件）
                            </option>

                            <option method='post' url='/api/personnel/personnel-notes'
                                    value='{"pageNum":1,"pageSize":5,"postId":1,"targetId":1,"noteType":1,"targetType":1,"userId":1,"beginTime":2345,"endTime":352343}'>
                                15.1. 条件查询人事日志列表（支持某时间段，某个人，某个岗位，某个操作对象，某操作对象类型，某操作类型条件）
                            </option>
                            <option method='get' url='/api/personnel/personnel-note/1'
                                    value='{}'>
                                15.2. 查询单个人事日志
                            </option>
                            <option method='post' url='/api/personnel/rf-personnel'
                                    value='{"postId":1,"beginTime":2345,"endTime":352343}'>
                                15.3. 查询人事报表
                            </option>
                            <option method='post' url='/api/personnel/statistics/personnel-rf'
                                    value='{}'>
                                15.4. 统计人事报表
                            </option>

                            <option method='post' url='/api/material/site'
                                    value='{"employeeId":1,"siteName":"成都站","siteLocation":"四川省成都市"}'>
                                16.1. 新增站点
                            </option>
                            <option method='get' url='/api/material/site/1'
                                    value='{}'>
                                16.2. 查询单个站点
                            </option>
                            <option method='put' url='/api/material/site'
                                    value='{"siteId":1,"etag":"frewfgergth","employeeId":1,"siteName":"成都站","siteLocation":"四川省成都市"}'>
                                16.3. 修改站点
                            </option>
                            <option method='delete' url='/api/material/site/1'
                                    value='{}'>
                                16.4. 逻辑删除站点
                            </option>
                            <option method='post' url='/api/material/sites'
                                    value='{"pageNum":1,"pageSize":5,"siteName":"成都站","status":0}'>
                                16.5. 查询站点列表
                            </option>
                            <option method='put' url='/api/material/site/status/{siteId}/{status}'
                                    value='{}'>
                                16.6. 开启或关闭站点（status为1表示关闭站点，为0表示开启站点）
                            </option>
                            <option method='get' url='/api/material/site/excel'
                                    value='{"pageNum":1,"pageSize":5,"siteName":"成都站","status":0}'>
                                16.7. 导出站点列表excel
                            </option>
                            <option method='post' url='/api/material/operation-logs'
                                    value='{"employeeId":1,"operationType":5,"beginTime":23452435,"endTime":235456}'>
                                17.1. 查询物资日志列表
                            </option>
                            <option method='get' url='/api/material/operation-log/excel'
                                    value='{"pageNum":1,"employeeId":1,"operationType":5,"beginTime":23452435,"endTime":235456}'>
                                17.2. 导出物资日志excel
                            </option>
                            <option method='' url=''
                                    value=''>
                                -------------------------
                            </option>
                            <option method='post' url='/api/material/in-storage/list'
                                    value='{"pageNum":1}'>
                                物资模块>入库资源列表
                            </option>
                            <option method='get' url='/api/material/in-storage/list/excel'
                                    value='{"pageNum":1}'>
                                物资模块>导出入库资源列表excel
                            </option>
                            <option method='post' url='/api/material/recycle/list'
                                    value='{"pageNum":1}'>
                                物资模块>回收记录列表
                            </option>
                            <option method='get' url='/api/material/recycle/list/excel'
                                    value='{"pageNum":1,"employeeName":"王文强"}'>
                                物资模块>导出回收列表excel
                            </option>
                            <option method='post' url='/api/material/destory/list'
                                    value='{"pageNum":1}'>
                                物资模块>报损记录列表
                            </option>
                            <option method='get' url='/api/material/destory/list/excel'
                                    value='{"pageNum":1}'>
                                物资模块>导出报损记录列表excel
                            </option>
                            <option method='' url=''
                                    value=''>
                                -------------------------
                            </option>
                            <option method='post' url='/api/operation/account'
                                    value='{"phone":"13778891144","password":"Jiejing@2018448","platformType":1}'>
                                运营模块>账号授权登录
                            </option>
                            <option method='post' url='/api/operation/account/list'
                                    value='{"pageSize":10,"pageNum":1}'>
                                运营模块>获取账号列表
                            </option>


                            <option method='post' url='/api/operation/job'
                                    value='{"dataStartDate":1491843661000,"dataEndDate":1491843661000,"accountId":1}'>
                                运营模块>启动一个任务
                            </option>
                            <option method='post' url='/api/operation/job/1'
                                    value='{}'>
                                运营模块>重新启动一个完成的任务
                            </option>
                            <option method='post' url='/api/operation/job/list'
                                    value='{"pageSize":10,"pageNum":1}'>
                                运营模块>获取任务列表
                            </option>

                            <option method='post' url='/api/operation/team/city/list'
                                    value='{"dataSource":"eleme","city":"成都"}'>
                                运营模块>获取城市列表
                            </option>
                            <option method='post' url='/api/operation/team/team-name/list'
                                    value='{"citys":["成都市","长沙市"],"dataSource":"eleme","teamName":"华阳"}'>
                                运营模块>获取站点列表
                            </option>
                            <option method='post' url='/api/operation/team/employee-name/list'
                                    value='{"citys":["成都市","长沙市"],"dataSource":"eleme","takerTeamIds":["ele_43245","ele_43246"],"employeeName":"张"}'>
                                运营模块>获取骑手列表
                            </option>
                            <option method='post' url='/api/operation/team/grid-name/list'
                                    value='{"dataSource":"eleme","city":"成都市","gridName":"华阳"}'>
                                运营模块>获取区域网格列表
                            </option>
                            <option method='post' url='/api/operation/taker/order/data-source/list'
                                    value='{"dataSource":"ele","dataSourceName":"饿"}'>
                                运营模块>获取数据来源列表
                            </option>
                            <option method='post' url='/api/operation/taker/order/yesterday/list'
                                    value='{"dataSource":"eleme","city":"成都市","takerTeamId":"ele_234235","pageNum":1}'>
                                运营模块>获取昨日订单信息
                            </option>
                            <option method='post' url='/api/operation/taker/order/rank/list'
                                    value='{"dataSource":"eleme","city":"成都市","takerTeamId":"ele_234235","pageNum":1,"orderBy":"billCount","sort":"desc"}'>
                                运营模块>获取订单排名
                            </option>
                            <option method='post' url='/api/operation/taker/order/delivery/list'
                                    value='{"dataSource":"eleme","citys":["成都市","长沙市"],"takerTeamIds":["ele_4170","ele_6203675"],"takerIds":["ele_23454"],"pageNum":1,"orderBy":"billCount","sort":"desc","beginTime":1,"endTime":214235346567}'>
                                运营模块>获取配送数据列表
                            </option>
                            <option method='get' url='/api/operation/taker/order/delivery/excel'
                                    value='{"dataSource":"eleme","citys":["成都市","长沙市"],"takerTeamIds":["ele_4170","ele_6203675"],"takerIds":["ele_23454"],"pageNum":1,"orderBy":"billCount","sort":"desc","beginTime":1,"endTime":214235346567}'>
                                运营模块>导出配送数据excel
                            </option>
                            <option method='post' url='/api/operation/taker/order/delivery/day'
                                    value='{"dataSource":"eleme","citys":["成都市","长沙市"],"takerTeamIds":["ele_4170","ele_6203675"],"takerIds":["ele_23454"],"beginTime":1,"endTime":214235346567}'>
                                运营模块>合并分析或点击获取按天分组数据
                            </option>
                            <option method='post' url='/api/operation/taker/order/delivery/chart/compare'
                                    value='{"citys":["成都市","长沙市"],"takerTeamIds":["ele_4170","ele_6203675"],"takerIds":["ele_23454"],"dataSource":"eleme","beginTime":1,"endTime":214235346567}'>
                                运营模块>对比分析
                            </option>
                            <option method='get' url='/api/operation/taker/order/delivery/chart/excel'
                                    value='{"chartType":2,"citys":["成都市"],"takerTeamIds":["ele_234235"],"takerIds":["ele_23454"],"dataSource":"eleme","property":"billCounts"}'>
                                运营模块>导出图表
                            </option>
                            <option method='post' url='/api/operation/taker/order/repair'
                                    value='{}'>
                                运营模块>修补订单
                            </option>


                            <!-- ##分割线#############################################################################-->
                        </select>
                    </div>
                </div>
            </fieldset>
            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">请求方法</label>
                    <div class="col-sm-8">
                        <input class="form-control" id="api_method" type="text" placeholder="" value=""/>
                        <div style="float: left; padding-top: 8px; padding-left: 8px ">
                            <span style="float: left">下载文件</span><input id="returnFileCheckbox" type="checkbox"
                                                                        style="float: left;"/>
                            <a id="loadFileA" target="_blank" href="javascript:void(0)" style="display:none;"></a>
                        </div>
                    </div>
                </div>
            </fieldset>
            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">接口地址</label>
                    <div class="col-sm-8">
                        <input class="form-control" id="api_url" type="text"
                               placeholder="" value=""/>
                    </div>
                </div>
            </fieldset>

            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">请求参数</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" id="api_param" rows="6"></textarea>
                    </div>
                </div>
            </fieldset>


            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-5">
                        <input type="button" id="test" class="col-sm-3 btn btn-primary" value="测试">
                    </div>
                </div>
            </fieldset>

            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label">返回状态</label>
                    <div class="col-sm-2">
                        <input class="form-control" id="api_status" type="text"
                               placeholder="" value=""/>
                    </div>
                </div>
            </fieldset>
            <fieldset id="showJson">
                <div class="form-group">
                    <label class="col-sm-2 control-label">返回信息</label>
                    <div class="col-sm-8">
                        <div
                                style="padding: 10px; font-size: 16px; border-bottom: solid 1px #ddd;"
                                class="navi">
                            <a href="#" class="tip zip" title="压缩" data-placement="bottom"><i
                                    class="fa fa-database"></i></a>
                        </div>
                        <div id="right-box"
                             style="height: 510px; border: solid 1px #ddd; resize: none; overflow-y: scroll; outline: none; position: relative;">
                            <div id="line-num"
                                 style="background-color: #fafafa; padding: 0px 8px; float: left; border-right: dashed 1px #eee; display: none; z-index: -1; color: #999; position: absolute; text-align: center; over-flow: hidden;">
                                <div>
                                    1
                                    <div></div>
                                </div>
                            </div>
                            <div class="ro" id="json-target" style="padding: 0px 25px;">
										<span style="color: #f1592a; font-weight: bold;">RangeError:
											Invalid array length</span>
                            </div>
                        </div>
                        <form id="form-save" method="POST">
                            <input type="hidden" value="" id="txt-content" name="content">
                        </form>
                    </div>
                </div>
            </fieldset>

            <fieldset>
                <div class="form-group">
                    <main class="row-fluid"> <textarea id="json-src"
                                                       style="display: none;"></textarea> <br style="clear: both;">
                    </main>
                </div>
            </fieldset>
        </form>
    </div>

</div>

<!-- ======================Json=============== -->
<link href="to_json_files/jquery.numberedtextarea.css" rel="stylesheet">
<script src="to_json_files/hm.js"></script>
</script>
<script src="to_json_files/jquery.min.js"></script>
<script src="to_json_files/jquery.message.js"></script>
<div style="clear:both;"></div>
<div id="jquery-beauty-msg"></div>
<script src="to_json_files/jquery.json.js"></script>
<script src="to_json_files/jquery.xml2json.js"></script>
<script src="to_json_files/jquery.json2xml.js"></script>
<script src="to_json_files/json2.js"></script>
<script src="to_json_files/jsonlint.js"></script>
<script src="to_json_files/bootstrap.min.js"></script>
<script src="to_json_files/jquery.numberedtextarea.js"></script>
<script type="text/javascript">
    $('textarea').numberedtextarea();
    var current_json = '';
    var current_json_str = '';
    var xml_flag = false;
    var zip_flag = false;
    var shown_flag = false;
    $('.tip').tooltip();
    function init() {
        xml_flag = false;
        zip_flag = false;
        shown_flag = false;
        renderLine();
        $('.xml').attr('style', 'color:#999;');
        $('.zip').attr('style', 'color:#999;');

    }
    $('#json-src').keyup(function () {
        init();
        var content = $.trim($(this).val());
        var result = '';
        if (content != '') {
            //如果是xml,那么转换为json
            if (content.substr(0, 1) === '<' && content.substr(-1, 1) === '>') {
                try {
                    var json_obj = $.xml2json(content);
                    content = JSON.stringify(json_obj);
                } catch (e) {
                    result = '解析错误：<span style="color: #f1592a;font-weight:bold;">' + e.message + '</span>';
                    current_json_str = result;
                    $('#json-target').html(result);
                    return false;
                }

            }
            try {
                current_json = jsonlint.parse(content);
                current_json_str = JSON.stringify(current_json);
                //current_json = JSON.parse(content);
                result = new JSONFormat(content, 4).toString();
            } catch (e) {
                result = '<span style="color: #f1592a;font-weight:bold;">' + e + '</span>';
                current_json_str = result;
            }

            $('#json-target').html(result);
        } else {
            $('#json-target').html('');
        }

    });
    $('.xml').click(function () {
        if (xml_flag) {
            $('#json-src').keyup();
        } else {
            var result = $.json2xml(current_json);
            $('#json-target').html('<textarea style="width:100%;height:100%;border:0;resize:none;">' + result + '</textarea>');
            xml_flag = true;
            $(this).attr('style', 'color:#15b374;');
        }

    });

    function renderLine() {
        var line_num = $('#json-target').height() / 20;
        $('#line-num').html("");
        var line_num_html = "";
        for (var i = 1; i < line_num + 1; i++) {
            line_num_html += "<div>" + i + "<div>";
        }
        $('#line-num').html(line_num_html);
    }
    $('.zip').click(function () {
        if (zip_flag) {
            $('#json-src').keyup();
        } else {
            $('#json-target').html(current_json_str);
            zip_flag = true;
            $(this).attr('style', 'color:#15b374;');
        }

    });
    $('.clear').click(function () {
        $('#json-src').val('');
        $('#json-target').html('');
    });
    $('.save').click(function () {
        var content = JSON.stringify(current_json);
        $('#txt-content').val(content);
        $("#form-save").submit();
    });
    $('#json-src').keyup();

</script>
</body>
</html>